﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Query.SportBusiness.CompetitionGroupingInfo
{
    /// <summary>
    /// 分组信息同步请求
    /// </summary>
    public  class GroupingInfoSynchronizationQuery
    {
        /// <summary>
        /// 分组主键Id
        /// </summary>
        public Guid? Id { get; set; }
        /// <summary>
        /// 比赛项目ID
        /// </summary>
        public Guid CompetitionProjectId { get; set; }

        /// <summary>
        /// 比赛场次ID
        /// </summary>
        public Guid EventsSessionId { get; set; }

        /// <summary>
        /// 分组名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreateUserId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDeleted { get; set; }

        /// <summary>
        /// 组员信息列表
        /// </summary>
        public List<EmployeeInfo> GroupEmployeeList { get; set; }
    }
    /// <summary>
    /// 分组人员信息
    /// </summary>
    public class EmployeeInfo
    {
        /// <summary>
        /// 分组主键Id
        /// </summary>
        public Guid? Id { get; set; }

        /// <summary>
        /// 参赛团队Id
        /// </summary>
        public Guid? CompeteTeamId { get; set; }

        /// <summary>
        /// 参赛团队人员信息
        /// </summary>
        public List<CompeteTeamInfo> CompeteTeamInfos { get; set; }

        /// <summary>
        /// 参赛用户ID
        /// </summary>
        public Guid? EmployeeId { get; set; }

        /// <summary>
        /// 比赛号位
        /// </summary>
        public int? NoLocation { get; set; }

        /// <summary>
        /// 传感器
        /// </summary>
        public string Sensor { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreateUserId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDeleted { get; set; }
    }

    /// <summary>
    /// 参赛团队成员信息
    /// </summary>
    public class CompeteTeamInfo
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public Guid? Id { get; set; }
        /// <summary>
        /// 参赛用户Id
        /// </summary>
        public Guid EmployeeId { get; set; }

        /// <summary>
        /// 传感器
        /// </summary>
        public string Sensor { get; set; }
    }
}
